package dst.graph.explorer;

import dst.graph.GraphSearchable;

/**
 * Explores TreeNodes by printing their content.
 * @author Shimu
 */
public class TracerExplorer<T> implements TreeExplorer<T> {

    public TracerExplorer() {
    }

    /**
     * Explores the given node by printing its content. Returns false.
     * @param node the current node to be printed
     * @return false
     */
    @Override
    public boolean exploreCurrent(GraphSearchable<T> node) {
        System.out.println(node);
        return false;
    }

}
